﻿using System;
using System.Collections.Generic;

namespace YArchitech.Plumbing
{
	public class ExcelData
	{
		public string Title { get; set; }

		public string SheetName { get; set; }

		public string FileName { get; set; }

		public List<ExcelData.Cell> ColumnsData { get; set; }

		public List<List<ExcelData.Cell>> RowsData { get; set; }

		public List<List<ExcelData.Cell>> ForwardData { get; set; }

		public string BackwardData { get; set; }

		public ExcelData()
		{
			this.Title = "";
			this.SheetName = "";
			this.FileName = "";
			this.ColumnsData = new List<ExcelData.Cell>();
			this.RowsData = new List<List<ExcelData.Cell>>();
		}

		public enum ExcelCellType
		{
			StringCell = 1,
			Int16Cell,
			Int32Cell,
			Int64Cell,
			doubleCell
		}

		public class Cell
		{
			public ExcelData.ExcelCellType TypeOfCell { get; set; }

			public string Data { get; set; }

			public int Round { get; set; }

			public Cell()
			{
				this.TypeOfCell = ExcelData.ExcelCellType.StringCell;
				this.Data = "";
				this.Round = 0;
			}
		}
	}
}
